package com.yanghang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("transaction_record")
public class Record implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String cardno;
    @TableField("transactionDate")
   @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date transactionDate;
    private Double amount;
    private Double balance;
    @TableField("transactionType")
    private String transactionType;
    private String remark;
}
